/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-8-24 上午10:57 Created by lyyang
 */
package com.jade.bss.base.blacklist;

import java.util.List;

import com.jade.framework.base.criterion.Criteria;
import com.jade.framework.base.util.PagingList;

/**
 * 黑名单dao
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-8-24 上午10:57
 */
public interface BlackListDao
{
    long add(BlackList blackList);

    void update(BlackList blackList);

    void remove(BlackList blackList);

    BlackList get(long id);

    PagingList<BlackList> query(Criteria criteria);

    List<BlackList> list(Criteria criteria);

    void remove(String ownerType, String ownerId, String blockType, String blockId);

    BlackList get(String ownerType, String ownerId, String blockType, String blockId);
}
